		<form name="edit" action="/?exp=4&opt=w&ID=<? echo $ID;?>" method="POST">
		<table border="1" cellspacing="1" cellpadding="1">
		<tr><td colspan="99"><a href="/?exp=4&ID=<?php echo $ID-1;?>">Previous record</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/?exp=4&ID=<?php echo $ID+1;?>">Next record</a></td></tr>
		<?php 
		    foreach ($RESULTINFO as $key => $val)
		    { 
                if (isset($val["flags"][1]) && $val["flags"][1]=="primary_key")
                {
                    echo "<tr bgcolor='silver'><td>".$val["name"]."</td><td>".$RESULT->$val["name"]."<input name='__".$val["name"]."' type='hidden' value='".$RESULT->$val["name"]."'></td></tr>";
                    continue;
                }
		        echo "<tr>";
		        switch ($val["native_type"])
		        {
		            case "BLOB":
		                echo '<td>'.$val["name"].'</td><td><textarea name="__'.$val["name"].'" rows="5" cols="40">'.$RESULT->$val["name"].'</textarea></td>';
		            break;		                
		            case "LONG":
		            case "STRING":
		            default:
		                echo '<td>'.$val["name"].'</td><td><input name="__'.$val["name"].'" size="'.max($val["len"],30).'" maxlength="'.$val["len"].'" value="'.$RESULT->$val["name"].'"></td>';
		            break;
		        }
		        echo "</tr>";
		    }
		?>
		<tr>
		</tr>
		<tr><td colspan="99" align="center"><input type="submit" value="Save"></input></td></tr>
		</table>
		</form>
